# Read about factories at https://github.com/thoughtbot/factory_girl

FactoryGirl.define do
  factory :user do
    sequence(:email) {"#{Faker::Lorem.word}@#{Faker::Lorem.word}.#{['ru','com','org'].sample}"}
    password "1234567"
    password_confirmation "1234567"
    # association :child, :factory => :msk_user
    # association :parent, :factory => :ural_user
    # relation_allowed true
    # sequence(:child_name) {|n| "#{Faker::Lorem.word[0,9]}"}
    # sequence(:child_avatar) {|n| "child_avatar_#{n}"}
    # sequence(:web_name) {|n| "web_name_#{n}_#{Faker::Lorem.word[0,10]}"}
  end
end
